In law enforcement, the phrase gypsy cop is slang for an itinerant lawman, a peace officer who floats from department to department regardless of, or because of, misconduct or poor job performance.
The phrase entered public parlance after the infamous Tulia drug stings, where itinerant lawman Tom Coleman allegedly set up innocent people, most of them black, as part of a long-term undercover operation.